import request from "../service/request"
import {
  buildQueryString
} from "../utils/url"

export const queryBrandList = (brandName, page, pageSize) => {
  return request.get(`/brand/list?${buildQueryString({brandName,page,pageSize})}`)
}

export const queryBrandDetail = (id) => {
  return request.get(`/brand/detail/${id}`)
}

export const queryBrandWithLetterInfo = () => {
  return request.get("/brand/list/with/letter")
}